package com.lzh.exception;

import lombok.Data;


@Data
public class BusinessException extends RuntimeException {
    protected Integer errorCode;
    protected String errorMessage;

    public BusinessException(String errorMessage) {
        super(errorMessage);
        this.errorMessage = errorMessage;
    }

    public BusinessException(String errorMessage, Integer errorCode) {
        super(errorMessage);
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }
}
